home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Example / EdEdText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-22  |  2.8 KB  |  80 lines  |  [TEXT/MPS ]

  1. #ifndef EDEDTEXT_H
  2. #define EDEDTEXT_H
  3. //===================================================================================
  4. //
  5. //     File:            EdEdText.h
  6. //     Release Version:    $Revision$
  7. //
  8. //     COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED RIGHTS
  9. //     RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT
  10. //     NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  11. //
  12. //     THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  13. //     CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  14. //     EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  15. //
  16. //     RESTRICTED RIGHTS LEGEND
  17. //     Use, duplication, or disclosure by the Government is subject to restrictions
  18. //     as set forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and
  19. //     Computer Software clause at DFARS 252.227-7013.
  20. //     Symantec Corporation, 10201 Torre Avenue, Cupertino, CA 95014.
  21. //
  22. //===================================================================================
  23.  
  24. #ifndef BREDITTX_H
  25. #include <BREditTx.h>
  26. #endif
  27.  
  28. //-----------------------------------------------------------------------------------
  29. // class cEdEditText
  30. //
  31. // The text editor class which is derived from BR_CEditText and has some additional 
  32. // functionality.
  33. //-----------------------------------------------------------------------------------
  34.  
  35. class cEdEditText : public BR_CEditText
  36. {
  37. public:
  38.                             cEdEditText(BR_CView            *enclosure,
  39.                                         BR_CBureaucrat        *supervisor,
  40.                                         BR_Distance            width,
  41.                                         BR_Distance            height,
  42.                                         BR_Coordinate        x,
  43.                                         BR_Coordinate        y,
  44.                                         ViewSizing            horzSizing,
  45.                                         ViewSizing            vertSizing,
  46.                                         ViewUnits            viewUnit,
  47.                                         const BR_CRectangle    &boundsRect);
  48.     virtual                    ~cEdEditText();
  49.  
  50.     virtual void            DoSelectAll();
  51.     virtual    void             DoFind();
  52.     virtual    void             DoFindAgain();
  53.     virtual    void             DoReplace();
  54.     virtual    void             DoReplaceAgain();
  55.     virtual    void             DoGoToLine();
  56.     virtual    void            DoFont();
  57.             BR_Boolean        SearchText(const BR_TString<BR_Char> &searchString,
  58.                                        BR_Boolean fromStart);
  59.             void            ReplaceText(BR_Boolean fromStart);
  60.     
  61.     // Overridden methods
  62.     virtual void            UpdateMenus(BR_CMenuBar &menuBar,
  63.                                         BR_Boolean fCallSupervisor);
  64.     virtual BR_Boolean        DoCommand(CommandId cmdId, 
  65.                                       BR_CObject *notifier,
  66.                                       BR_Boolean fCallSupervisor);
  67.                                           
  68. private:
  69.         BR_CDynamicCharString    fFindText;            // The text to find when using the
  70.                                                     // find or find again option.
  71.         BR_CDynamicCharString    fReplaceFindText;    // The text to find when using the
  72.                                                     // replace or replace again option.
  73.         BR_CDynamicCharString    fReplacementText;    // The text to insert when using the 
  74.                                                     // replace or replace again option.
  75.                                             
  76.                             BR_SETCLASSNAME(cEdEditText);
  77. };
  78.  
  79. #endif
  80.